home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / bin / xdg-user-dir < prev    next >
Text File  |  2008-10-08  |  242b  |  9 lines

  1. #!/bin/bash
  2.  
  3. test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs
  4. if [ "x$1" == "xDESKTOP" ]; then
  5.   eval echo \${XDG_${1}_DIR:-$HOME/Desktop}
  6. else
  7.   eval echo \${XDG_${1}_DIR:-$HOME}
  8. fi
  9.